<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="java.util.Calendar"%>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/calendar6.js" %>"></script>
<logic:messagesPresent message="true"> 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgInfor" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
  <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgError" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgWarn" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
 
 <table title="Mensajes de aplicacion" align="center" >
  <tr>
    <td><html:messages id="msg" property="msgOk" message="true">
      <table border="0" cellpadding="0" cellspacing="0">
       <tr>
         <td bgcolor="#A8BDDD" class="titalert"></td>
         <td bgcolor="#A8BDDD" class="titalert" height="30"><bean:write name="msg"/></td>
       </tr>
      </table></html:messages> 
    </td>
  </tr>
 </table>
</logic:messagesPresent> 
 
<table width="100%"  border="0" cellspacing="0" cellpadding="0" widtd="100%">
   
  <tr align="left"> 
   <td height="25" align="center" class="titulosenblanco"> 
    <p>
     <STRONG>ACTUALIZACION DE GRUPO DE USUARIOS</STRONG>
    </p>
    <p>&nbsp; </p>
   </td>
   </tr>
  
 <html:form  action="/admin/updateUserGroup.do"  method="post" name="frmUpdateUserGroup" type="com.cs.paoyer.administration.web.form.UserGroupForm">
 <input type="hidden" name="code" value='<bean:write name="userGroupSelected" property="code" />' />
   
  <tr align="left"> 
   <td height="25" align="center" class="titulosenblanco"> 
    <p align="right"><html:link page="/admin/findUserGroupOptions.do" paramId="code" paramName="userGroupSelected" paramProperty="code"><img src="<%= request.getContextPath() + "/images/b_nuevo.gif" %>" alt="Nuevo" width="22" height="22" border="0"><br>
            <span class="celdaayd">Modificar opciones</span></html:link></td>
   </tr>
  
  <tr align="left">
   <td height="25" class="titulosenblanco">   
		<table width="100%" border="0" cellspacing="3" cellpadding="3" class="titulosenrojo">
     <tr>
    	<td width="25%">&nbsp;</td>
			<td width="20%" class="celdatabla"><strong>Nombre</strong> (*)&nbsp;&nbsp; 
			</td>
			<td width="40%"> 
              <input type="text" size= "40" styleClass="form"  name="name" value='<bean:write name="userGroupSelected" property="name" />'/>
           </td>
			<td width="15%">&nbsp;</td>
     </tr>
<!--	 <tr>
   <td width="30%">&nbsp;</td>
    <td colspan="2" class="Celdatabla" bgcolor="#A8BDDD" width="50%"><strong>Vigencia</strong></td>
    <td width="20%">&nbsp;</td>
  </tr>
	 <tr>
		  <td width="25%">&nbsp;</td>
		  <td class="celdatabla" width="20%">
        <strong>Vigencia</strong> (*)&nbsp;&nbsp; 
      </td>
		  <td width="40%">
		    <html:select styleClass="form" property="use" style="width:215" > 
          <logic:equal name="userGroupSelected" property="use" value="S">
              <html:option value = "s" >si</html:option>
              <html:option value = "n" >no</html:option>
          </logic:equal>
          <logic:notEqual name="userGroupSelected" property="use" value="S">
               <html:option value = "n" >no</html:option>
               <html:option value = "s" >si</html:option>    
           </logic:notEqual>
        </html:select>
		  </td>
		  <td width="15%">&nbsp;</td>
   </tr>
   <tr>
		  <td width="25%">&nbsp;</td>
		  <td class="celdatabla" width="20%"><strong>Desde</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="40%">
		  	 <input type="text" size= "40" class="form"  name="effectiveFrom" readonly="true" value='<bean:write name="userGroupSelected" property="effectiveFrom" />' />
			 <a href="javascript:effectiveFrom1.popup();">
                        <img src="<%= request.getContextPath() + "/images/cal.gif" %>" 
                        width="16" height="16" border="0" alt="Click para seleccionar la fecha"></a>
		  </td>
		  <td width="15%">&nbsp;</td>
	</tr>
	<tr>
		  <td width="25%">&nbsp;</td>
		  <td class="celdatabla" width="20%"><strong>Hasta</strong> (*)&nbsp;&nbsp; 
		  </td>
		  <td width="40%"> 
		  	<input type="text" size= "40" class="form" readonly="true"   name="effectiveUntil" value='<bean:write name="userGroupSelected" property="effectiveUntil" />' />
			<a href="javascript:effectiveUntil1.popup();">
                        <img src="<%= request.getContextPath() + "/images/cal.gif" %>" 
                        width="16" height="16" border="0" alt="Click para seleccionar la fecha"></a>
	      </td>
		  <td width="15%">&nbsp;</td>
	</tr>
   <tr>
    <td width="30%">&nbsp;</td>
    <td colspan="2" class="Celdatabla" bgcolor="#A8BDDD"><strong>Indicadores de control</strong></td>
    <td width="20%">&nbsp;</td>
  </tr>
   <tr>
		  <td width="25%">&nbsp;</td>
		  <td class="celdatabla" width="20%">
        <strong>Administrador</strong> (*)&nbsp;&nbsp; 
      </td>
		  <td width="40%">
		    <html:select styleClass="form" property="adminCtrlInd" style="width:215" > 
           <logic:equal name="userGroupSelected" property="adminCtrlInd" value="S">
              <html:option value = "s" >si</html:option>
              <html:option value = "n" >no</html:option>
          </logic:equal>
          <logic:notEqual name="userGroupSelected" property="adminCtrlInd" value="S">
               <html:option value = "n" >no</html:option>
               <html:option value = "s" >si</html:option>    
           </logic:notEqual>
        </html:select>
		  </td>
		  <td width="15%">&nbsp;</td>
   </tr>
   <tr>
		  <td width="25%">&nbsp;</td>
		  <td class="celdatabla" width="20%">
        <strong>Auditoria</strong> (*)&nbsp;&nbsp; 
      </td>
		  <td width="40%">
		    <html:select styleClass="form" property="auditCtrlInd" style="width:215" > 
           <logic:equal name="userGroupSelected" property="auditCtrlInd" value="S">
              <html:option value = "s" >si</html:option>
              <html:option value = "n" >no</html:option>
          </logic:equal>
          <logic:notEqual name="userGroupSelected" property="auditCtrlInd" value="S">
               <html:option value = "n" >no</html:option>
               <html:option value = "s" >si</html:option>    
           </logic:notEqual>
        </html:select>
		  </td>
		  <td width="15%">&nbsp;</td>
   </tr>
   <tr>
		  <td width="25%">&nbsp;</td>
		  <td class="celdatabla" width="20%">
        <strong>Manipulacion bloques</strong> (*)&nbsp;&nbsp; 
      </td>
		  <td width="40%">
		    <html:select styleClass="form" property="blockCtrlInd" style="width:215" > 
           <logic:equal name="userGroupSelected" property="blockCtrlInd" value="S">
              <html:option value = "s" >si</html:option>
              <html:option value = "n" >no</html:option>
          </logic:equal>
          <logic:notEqual name="userGroupSelected" property="blockCtrlInd" value="S">
               <html:option value = "n" >no</html:option>
               <html:option value = "s" >si</html:option>    
           </logic:notEqual>
        
        </html:select>
		  </td>
		  <td width="15%">&nbsp;</td>
   </tr>
   <tr>
		  <td width="25%">&nbsp;</td>
		  <td class="celdatabla" width="20%">
        <strong>Bloqueo registros</strong> (*)&nbsp;&nbsp; 
      </td>
		  <td width="40%">
		    <html:select styleClass="form" property="recLockInd" style="width:215" > 
           <logic:equal name="userGroupSelected" property="recLockInd" value="S">
              <html:option value = "s" >si</html:option>
              <html:option value = "n" >no</html:option>
          </logic:equal>
          <logic:notEqual name="userGroupSelected" property="recLockInd" value="S">
               <html:option value = "n" >no</html:option>
               <html:option value = "s" >si</html:option>    
           </logic:notEqual>
        </html:select>
		  </td>
		  <td width="15%">&nbsp;</td>
   </tr>
	 
  <tr>
  <td width="30%">&nbsp;</td>
    <td colspan="2" class="Celdatabla" bgcolor="#A8BDDD"><strong>Contrasena</strong></td>
    <td width="20%">&nbsp;</td>
  </tr>
   <tr>
    	<td width="25%">&nbsp;</td>
			<td width="20%" class="celdatabla"><strong>Numero maximo de errores de logeo</strong> (*)&nbsp;&nbsp; 
			</td>
			<td width="40%"> 
              <input type="text" size= "40" styleClass="form"  name="keyMaxErr" value='<bean:write name="userGroupSelected" property="keyMaxErr" />'/>
      </td>
			<td width="15%">&nbsp;</td>
   </tr>
   <tr>
    	<td width="25%">&nbsp;</td>
			<td width="20%" class="celdatabla"><strong>Numero de dias para cambio de clave</strong> (*)&nbsp;&nbsp; 
			</td>
			<td width="40%"> 
              
              <input type="text" size= "40" styleClass="form"  name="keyMaxDays" value='<bean:write name="userGroupSelected" property="keyMaxDays" />'/>
      </td>
			<td width="15%">&nbsp;</td>
   </tr>
   <tr>
    	<td width="25%">&nbsp;</td>
			<td width="20%" class="celdatabla"><strong>Min dias reusar</strong> (*)&nbsp;&nbsp; 
			</td>
			<td width="40%"> 
              
              <input type="text" size= "40" styleClass="form"  name="keyMinChangesReuse" value='<bean:write name="userGroupSelected" property="keyMinChangesReuse" />'/>
      </td>
			<td width="15%">&nbsp;</td>
   </tr>
   <tr>
    	<td width="25%">&nbsp;</td>
			<td width="20%" class="celdatabla"><strong>Min cambios reusar</strong> (*)&nbsp;&nbsp; 
			</td>
			<td width="40%"> 
              
              <input type="text" size= "40" styleClass="form"  name="keyMinDaysReuse" value='<bean:write name="userGroupSelected" property="keyMinDaysReuse" />'/>
      </td>
			<td width="15%">&nbsp;</td>
   </tr>-->
     <tr>
		  <td width="25%">&nbsp;</td>
		  <td width="20%" valign="top" class="celdatabla"><strong>Descripcion</strong> 
            (*)&nbsp;&nbsp; </td>
		  <td width="40%"> <textarea  name="description" cols="35" rows="5" styleClass="form"><bean:write name="userGroupSelected" property="description" /></textarea></td>
		  <td width="15%">&nbsp;</td>
	</tr>
		  <tr> 
			<td class="celdatabla" colspan="3" align="center">&nbsp;Los campos marcados con (*) son obligatorios</td>
			<td width="15%">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4">&nbsp;</td>
		  </tr>
		  <tr> 
			<td colspan="4" align="center"><html:image src='<%= request.getContextPath() + "/images/b_ingresar_b1.gif" %>' border="0" value='Guardar' title='Guardar' onclick='submit;' /></td>
		  </tr>
	   </table>
    </td>
  </tr>  
 </html:form>  
</table>
<!--
<script language="JavaScript">
                       
                        var effectiveFrom1 = new calendar1(document.forms['frmUpdateUserGroup'].elements['effectiveFrom'],"-",'<%=request.getContextPath()+"/js/"%>');
                        var effectiveUntil1 = new calendar1(document.forms['frmUpdateUserGroup'].elements['effectiveUntil'],"-",'<%=request.getContextPath()+"/js/"%>');
                      
                      </script>-->
<p align="center">
  <html:link page="/admin/findUserGroup.do">
    <img src="<%= request.getContextPath() + "/images/b_atras.gif" %>" width="24" height="15" border="0"/>
    <br/>
    <span class="celdaayd">Atras</span>
  </html:link>
</p>

